package com.yswl.yeeduo.ui.activity;

import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.umeng.analytics.MobclickAgent;
import com.yswl.yeeduo.R;
import com.yswl.yeeduo.ui.base.BaseWebViewActivity;

public class WebViewActivity2 extends BaseWebViewActivity {

	@Override
	public int loadView_Lanscape() {
		return R.layout.activity_webview2;
	}

	@Override
	public int loadView() {
		return R.layout.activity_webview2;
	}

	@Override
	public void initView() {

		super.mTitle = (TextView) super.findViewById(R.id.nav_title);
		mTitle.setText("WEB");
		super.mBack = (ImageView) super.findViewById(R.id.nav_left);
		mBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		super.webView = (WebView) super.findViewById(R.id.web_view);
		super.mLayout = (RelativeLayout) webView.getParent();

	}

	// Um
	public void onResume() {
		super.onResume();
		MobclickAgent.onPageStart(this.getClass().getSimpleName());
		MobclickAgent.onResume(this); // 统计时长
	}

	public void onPause() {
		super.onPause();
		MobclickAgent.onPageEnd(this.getClass().getSimpleName());
		MobclickAgent.onPause(this);
	}

}
